package com.yugao.fintech.antelope.infra.dict.assembly;

import com.yugao.fintech.antelope.infra.module.dict.model.entity.Dict;
import com.yugao.fintech.antelope.infra.module.dict.model.entity.DictItem;
import com.yugao.fintech.antelope.infra.module.dict.model.rqrs.DictItemResp;
import com.yugao.fintech.antelope.infra.module.dict.model.rqrs.DictResp;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface DictAssembly {
    DictResp toDictResp(Dict source);
    DictItemResp toDictItemResp(DictItem source);

    DictItem toDictItem(DictItemResp source);

    Dict toDict(DictResp source);
}
